<?php  /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/topMain'); ?>
    <div class="container" id="content">
       <div class="header">
        <div class="weblogo">
        <p style="text-align:right;padding:5px;">
        <?php if(yii::app()->user->isGuest):?>
              <a href="<?php echo yii::app()->baseUrl.'/site/login'?>">登陆</a>
        <?php else:?>
              <a href="<?php echo yii::app()->baseUrl.'/user/view'?>">个人中心</a>
            <?php if(yii::app()->user->checkAccess('root')||yii::app()->user->checkAccess('admin')):?>
              <a href="<?php echo yii::app()->baseUrl.'/admin'?>">后台管理</a>
            <?php endif;?>
              <a href="<?php echo yii::app()->baseUrl.'/site/logout'?>">注销</a>
        <?php endif;?>
        </p>
        </div>
    <?php
        $this->widget('NavigationBar',
        array(
            'specialMenuItem'=>array(
 /*               array(
                    'name'=>'教学成果',
                    'relegation'=>'2',
                    'url'=>'/display/teachingachievement',
                ),*/
               /* array(
                    'name'=>'教学团队',
                    'relegation'=>'2',
                    'url'=>'/teacher',
                ),*/
                array(
                    'name'=>'实验平台展示',
                    'relegation'=>'4',
                    'url'=>'/display/courseList',
                ),
                array(
                    'name'=>'仪器资源',
                    'relegation'=>'6',
                    'url'=>'/display/instrument',
                ),
                array(
                    'name'=>'学习资源',
                    'relegation'=>'6',
                    'url'=>'/display/teach',
                ),
 /*               array(
                    'name'=>'平台资源',
                    'relegation'=>'6',
                    'url'=>'/display/platformresources',
                ),*/
           ),
        )
    );
        ?>
        <?php $this->widget('SlideBox',array('type'=>News::TYPE_HEADIMAGE,'height'=>350));?>
        </div>
        <?php if(count($this->breadcrumbs) !== 0):?>
		<?php /*$this->widget('zii.widgets.CBreadcrumbs', array(
            'links'=>$this->breadcrumbs,
            'htmlOptions'=>array('class'=>'breadcrumb')
        )); */?><!-- breadcrumbs -->
        <?php  $this->widget('BreadcrumbBox',array(
                    'menu'=>$this->breadcrumbs,
        )); ?><!-- breadcrumbs -->
        <?php endif;?>

           <?php echo $content; ?>
</div><!-- content -->
<?php $this->endContent(); ?>
